<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'RenderSlot',
  props: {
    params: {
      type: Object,
      default: () => ({})
    },
    render: {
      type: Function,
      default: () => ({})
    }
  },
  setup (props) {
    return () => {
      return props.render(props.params)
    }
  }
})
</script>
